<?php

/*
 * 数据库扩展配置
 * @since 1.0 <2015-7-15> SoChishun Added.
 */
return array(
    'DB_SHARDING_STATUS' => 1, // 数据库分片(分库分表,0=单机单库,1=单机多库,2=分布式数据库)
    'DB_SHARDING' => array(
        'DB_CALLNUMBER' => array('id' => 0, 'sharding_db' => '', 'db_type' => 'mysql', 'db_host' => 'localhost', 'db_user' => 'xcall', 'db_pwd' => 'root!@#xcall098)(*Admin%^&', 'db_port' => 3306, 'db_name' => 'db_xcall_callnumber'), //  // 外呼号码数据分库
        'DB_IMPORT_TEMP' => array('id' => 1, 'sharding_db' => '', 'db_type' => 'mysql', 'db_host' => 'localhost', 'db_user' => 'xcall', 'db_pwd' => 'root!@#xcall098)(*Admin%^&', 'db_port' => 3306, 'db_name' => 'db_xcall_import_temp'), // 导入数据中转数据分库 db_xcall_import_temp
        'DB_CDR' => array('id' => 2, 'sharding_db' => 'db_xcall_cdr', 'db_type' => 'mysql', 'db_host' => 'localhost', 'db_user' => 'xcall', 'db_pwd' => 'root!@#xcall098)(*Admin%^&', 'db_port' => 3306, 'db_name' => 'db_xcall_cdr'), // db_xcall_cdr 当天通话详单数据分库
        'DB_CDR_HISTORY' => array('id' => 3, 'sharding_db' => 'db_xcall_cdr_history', 'db_type' => 'mysql', 'db_host' => 'localhost', 'db_user' => 'xcall', 'db_pwd' => 'root!@#xcall098)(*Admin%^&', 'db_port' => 3306, 'db_name' => 'db_xcall_cdr_history'), // 通话详单历史数据分库
        'DB_LOG' => array('id' => 4, 'sharding_db' => 'db_xcall_log', 'db_type' => 'mysql', 'db_host' => 'localhost', 'db_user' => 'xcall', 'db_pwd' => 'root!@#xcall098)(*Admin%^&', 'db_port' => 3306, 'db_name' => 'db_xcall_log'), // 日志数据分库
        'DB_LOG_HISTORY' => '', // 日志历史数据分库
        'DB_SERVICE' => array('id' => 5, 'sharding_db' => 'db_xcall_service', 'db_type' => 'mysql', 'db_host' => 'localhost', 'db_user' => 'xcall', 'db_pwd' => 'root!@#xcall098)(*Admin%^&', 'db_port' => 3306, 'db_name' => 'db_xcall_service'), // 服务数据分库
        'DB_MESSAGE' => array('id' => 6, 'sharding_db' => 'db_xcall_message', 'db_type' => 'mysql', 'db_host' => 'localhost', 'db_user' => 'xcall', 'db_pwd' => 'root!@#xcall098)(*Admin%^&', 'db_port' => 3306, 'db_name' => 'db_xcall_message'), // 消息数据分库
        'DB_MESSAGE_HISTORY' => '', // 消息历史数据分库
        'DB_STATS' => '', // 统计数据分库
    ),
);
